import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router/routers'


import 'normalize.css/normalize.css'
import './assets/styles/element-variables.scss'
import './assets/styles/index.scss' // global css

import './assets/icons' // icon
import './router/index' // permission control

import Element from 'element-ui'
import Cookies from 'js-cookie'
Vue.use(Element, {
  size: Cookies.get('size') || 'small' // set element-ui default size
})

import permission from './components/Permission'
Vue.use(permission)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
